import React, {} from 'react';
import { useRoutes } from 'react-router-dom';
import routes from './routes/index';

 const App = () => {
  // 获得路由表
  const routeView = useRoutes(routes)

  return (
    <div>{routeView}</div>
  )
}

export default App;